const config = require('./config')
const BufferRingQueue = require('./BufferRingQueue')
const { StargateClient } = require('@cosmjs/stargate')

let rpc = config.rpc.gaia[1];

rpc = "http://192.168.1.179:26657"


const runAll = async ()=>{
    const client = await StargateClient.connect(rpc);
    let chainID = await client.getChainId();

    console.log("With client, chain id:",  chainID)

    let height = await client.getHeight();
    console.log('height is : ', height)

    let balance = await client.getAllBalances("cosmos1k7098ax9gstwq44pt6rl87ja3mdrr6vet5zjvy");
    console.log('balance: ', balance);

}
runAll();